package com.atguigu.com.gulimallouth.feign;

import com.atguigu.com.gulimallouth.vo.RegisterVo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("gulimall-three-pary")
public interface ThirdFeign {

    @GetMapping("/third/sms")
    R SmsPhone(@RequestParam("phone") String phone, @RequestParam("code") String code);

    @PostMapping("/member/member/regist")
    public R register(@RequestBody RegisterVo vo);
}
